package net.bithappens.hnqe.query;

import java.net.URI;

import net.bithappens.hnqe.graph.EntryValue;

public class ValueNode extends RelationMember{

	private EntryValue value;
	
	public ValueNode(String id, URI uri, EntryValue value) throws InvalidIdException {
		super(id, uri);
		this.value = value;
	}

	public EntryValue getValue() {
		return value;
	}

	public void setValue(EntryValue value) {
		this.value = value;
	}

	public Atom getValueAttribute(){
		return new AtomAttribute(this, "@value");
	}
	
	@Override
	public String toString() {
		return "[ValueNode| value:" + value + "]";
	}
	
}
